using System;
using System.Web.UI.WebControls;

namespace Impact.Web
{
    /// <summary>
    /// code-behind for error page
    /// </summary>
    public partial class error : System.Web.UI.Page
    {

        /// <summary>
        /// handler fired when page loads
        /// </summary>
        protected override void OnLoad( EventArgs e )
        {
            base.OnLoad( e );

            Exception ex = (Exception)Session["ex"];
            if ( ex != null )
                message.Text = ex.ToString();
        }

        /// <summary>
        /// submit the user's comments regarding the error
        /// </summary>
        protected void SubmitCommentCommand(object sender, CommandEventArgs e)
        {
            commentPanel.Visible = false;
            thankYouPanel.Visible = true;

        }


    }
}
